﻿<AutoRedirect Interval="3000" RedirectUrl="/" OnBeforeRedirectAsync="@OnBeforeRedirectAsync" />
<ConsoleLogger @ref="Logger" />

@code {

    [NotNull]
    private ConsoleLogger? Logger { get; set; }

    private Task<bool> OnBeforeRedirectAsync()
    {
        Logger.Log("Ready to redirect");
        return Task.FromResult(true);
    }
}
